//Source file: D:\\aaa\\com\\ce\\pms\\renovation\\model\\ApprovalItemDO.java

package com.ce.pms.renovation.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ce.pms.system.renovation.model.ApprovalItemConfigDO;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:审批项目 关联数据表:RM_APPROVAL_ITEM
 *
 * @author yandawei
 * @CreateDate:2008-12-17
 */
@Entity
@Table(name = "RM_APPROVAL_ITEM")
public class ApprovalItemDO implements IDomainObject {

	/**
	 *
	 */
	private static final long serialVersionUID = 5254626784049404125L;

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "APPROVAL_ITEM_ID")
	private Long keyword;

	/**
	 * 项目审批结果 001-通过，002-不通过
	 */
	@Column(name = "RESULT", nullable = false, length = 3)
	private String result;

	/**
	 * 所属审批对象
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "APPROVAL_ID")
	private RenovateApprovalDO approval;

	/**
	 * 项目配置对象
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "APPROVAL_ITEM_CONFIG_ID")
	private ApprovalItemConfigDO itemConfig;

	/**
	 * @roseuid 493CEDC003C8
	 */
	public ApprovalItemDO() {

	}

	public RenovateApprovalDO getApproval() {
		return approval;
	}

	public void setApproval(RenovateApprovalDO approval) {
		this.approval = approval;
	}

	public ApprovalItemConfigDO getItemConfig() {
		return itemConfig;
	}

	public void setItemConfig(ApprovalItemConfigDO itemConfig) {
		this.itemConfig = itemConfig;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

}
